clc;
clear;
while(1),
    A=randi([0,1],10);
    if rank(A)==10,
        break;
    end,
end,
A